home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
- <!--
-
- The contents of this file are subject to the Netscape Public License
- Version 1.1 (the "NPL"); you may not use this file except in
- compliance with the NPL. You may obtain a copy of the NPL at
- http://www.mozilla.org/NPL/
-
- Software distributed under the NPL is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
- for the specific language governing rights and limitations under the
- NPL.
-
- The Initial Developer of this code under the NPL is Netscape
- Communications Corporation. Portions created by Netscape are
- Copyright (C) 1999 Netscape Communications Corporation. All Rights
- Reserved.
-
- -->
-
- <?xml-stylesheet href="chrome://sidebar/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://sidebar/skin/customize.css" type="text/css"?>
-
- <!DOCTYPE window SYSTEM "chrome://sidebar/locale/customize.dtd" >
-
- <window
- xmlns:html="http://www.w3.org/TR/REC-html40"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="Init();"
- id="main-box"
- class="dialog"
- windowtype="sidebar:customize"
- align="vertical">
-
- <html:script src="chrome://sidebar/content/customize.js" />
-
- <!-- Dialog title -->
- <html:div class="title">
- &sidebar.customize.title.label;
- </html:div>
-
- <html:div>
- <html:hr />
- </html:div>
-
- <!-- The two-pane -->
- <box align="horizontal" flex="1*">
-
- <!-- All of the panels that are available -->
- <box align="vertical" flex="1*">
-
- <html:div class="subtitle">
- &sidebar.customize.additional.label;
- </html:div>
-
- <tree id="other-panels" flex="1"
- datasources="rdf:null"
- indent="true"
- multiple="true"
- style="height:20em">
-
- <template>
- <treechildren>
- <treeitem uri="rdf:*"
- title="rdf:http://home.netscape.com/NC-rdf#title"
- content="rdf:http://home.netscape.com/NC-rdf#content"
- link="rdf:http://home.netscape.com/NC-rdf#link"
- haslink="rdf:http://home.netscape.com/NC-rdf#haslink"
- open="rdf:http://home.netscape.com/NC-rdf#open"
- persist="open">
- <treerow>
- <treecell indent="true"
- value="rdf:http://home.netscape.com/NC-rdf#title"/>
- </treerow>
- </treeitem>
- </treechildren>
- </template>
- <treecol />
- <treechildren onclick="SelectChangeForOtherPanels(event, event.target.parentNode.parentNode)" />
- </tree>
-
- <!-- xxxslamm Need to add descriptive panel text here -->
- <box align="horizontal" class="button-group">
- <titledbutton id="add_button" onclick="AddPanel()"
- class="dialog push"
- value="&sidebar.customize.add.label;"
- disabled="true"/>
-
- <titledbutton id="preview_button" onclick="PreviewPanel()"
- class="dialog push"
- value="&sidebar.customize.preview.label;"
- disabled="true"/>
- </box>
- </box>
-
- <!-- Spacing between the left and right halves of the dialog -->
- <spring style="width:2em"/>
-
- <!-- The panels that the user currently has chosen -->
- <box align="vertical" flex="1*">
- <html:div class="subtitle">
- &sidebar.customize.current.label;
- </html:div>
-
- <box align="horizontal" class="box-group" flex="1*">
- <tree id="current-panels" onclick="SelectChangeForCurrentPanels();"
- datasources="rdf:null"
- multiple="true"
- style="height:0px">
- <template>
- <treechildren>
- <treeitem uri="rdf:*"
- title="rdf:http://home.netscape.com/NC-rdf#title"
- customize="rdf:http://home.netscape.com/NC-rdf#customize"
- content="rdf:http://home.netscape.com/NC-rdf#content">
- <treerow>
- <treecell
- value="rdf:http://home.netscape.com/NC-rdf#title" />
- </treerow>
- </treeitem>
- </treechildren>
- </template>
- <treecol />
- <!-- We explicitly create a 'treechildren' so we can refer
- to it from the script -->
- <treechildren id="current-panels-root"/>
- </tree>
-
- <!-- Spacing between the right selector and "Reorder" -->
- <spring style="width:5px"/>
-
- <!-- The 'reorder' buttons -->
- <box align="vertical">
- <spring flex="50%"/>
- <titledbutton onclick="MoveUp();" id="up" class="borderless up" />
- <html:div>
- &sidebar.customize.reorder.label;
- </html:div>
- <titledbutton onclick="MoveDown();" id="down"
- class="borderless down" />
- <spring flex="50%"/>
- </box>
- </box>
-
- <box align="horizontal" class="button-group">
- <titledbutton id="customize-button" onclick="CustomizePanel();"
- class="dialog push"
- value="&sidebar.customize.customize.label;" />
- <titledbutton id="remove-button" onclick="RemovePanel()"
- class="dialog push"
- value="&sidebar.customize.remove.label;" />
- </box>
- </box>
- </box>
-
- <html:div>
- <html:hr />
- </html:div>
-
- <!-- The 'Save' and 'Cancel' buttons -->
- <box align="horizontal">
- <spring flex="48%"/>
- <titledbutton onclick="window.close()"
- class="dialog push"
- value="&sidebar.customize.cancel.label;" />
- <spring flex="4%"/>
- <titledbutton id="save_button" onclick="Save();"
- class="dialog push"
- value="&sidebar.customize.save.label;"
- disabled="true"/>
- <spring flex="48%"/>
- </box>
- </window>
-
-